package itcast.bos.base.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import itcast.bos.domain.base.Courier;
import itcast.bos.domain.base.TakeTime;

public interface CourierRepostory extends JpaRepository<Courier, Integer>, JpaSpecificationExecutor<Courier> {

	@Query(value = "update Courier set deltag = '1' where id = ?")
	@Modifying
	void update(int i);

	@Query(value = "update Courier set takeTime = ?1 where id = ?2")
	@Modifying
	void updateCourierByTime(int id, TakeTime tt);

}
